<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Errors extends CI_Controller {

	 private $base;//类的属性，根目录地址
	 private $view_common;//类的属性，参数
	 private $data;//类的属性，默认通用传递参数
	
	/*构造函数,类初始化时，被调用*/
	function __construct()
	{
		parent::__construct();
		$this->base = $this->config->base_url();
		$this->view_common = $this->config->item('view_common');
		$this->data = array_merge($this->view_common, array( 'url'=>$this->base ));
	}
	/**
	 * Index Page for this controller.
	 *
	 * 404错误报告页面
	 */
	public function index()
	{
		//$this->output->cache(10);//缓存语句，参数：缓存多少分钟
		$data = $this->data;
		//$this->load->view('temples/head',$data);
		$this->load->view('404/error',$data);
		//$this->load->view('temples/footer',$data);
		
	}
	

}

/* End of file errors.php */
/* Location: ./application/controllers/errors.php */